package com.ktjy.mapper.user;

import com.ktjy.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageRecordMapper {
    /**
     * 增
     * @return
     */
    int insert(StorageRecord storageRecord);

    /**
     * 删
     * @param id
     * @return
     */
    int delete(@Param("id")int id);

    /**
     * 改
     * @param storageRecord
     * @return
     */
    int update(StorageRecord storageRecord);

    /**
     * 查
     * @return
     */
    List<StorageRecord> select(@Param("goodsName")String goodsName, @Param("supplierId")int supplierId, @Param("payStatus")int payStatus,
                                             @Param("pageBegin")int pageBegin, @Param("pageSize")int pageSize);

    int count();

    List<StorageRecord> selectAll(@Param("id")int id);
}
